﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="News.aspx.cs" Inherits="ProjectX.News" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <link href="/WebCss/base.css" rel="stylesheet" type="text/css" />
    <link href="/WebCss/default.css" rel="Stylesheet" type="text/css" />
    <script src="/ClientJs/jquery.js" type="text/javascript"></script>
    <title>淘我想淘</title>
    <style type="text/css">
        h1
        {
            font-weight: normal;
            font-size:18px
        }
    </style>
    <script language="javascript" type="text/javascript">
        $(document).ready(function () {
            $("#mainpage").hover(function () { $(this).addClass("mainActive"); }, function () { $(this).removeClass("mainActive"); });
            $("#buy").hover(function () { $(this).addClass("buylinkactive"); }, function () { $(this).removeClass("buylinkactive"); });
            $("#mybuy").hover(function () { $(this).addClass("mybuylinkactive"); }, function () { $(this).removeClass("mybuylinkactive"); });
            $("#allbuy").hover(function () { $(this).addClass("allbuylinkactive"); }, function () { $(this).removeClass("allbuylinkactive"); });
            $("#newsbody").html(unescape($("#newsbody").text()));
        });
    </script>
</head>
<body>
    <div id="headTop">
        <p>
            <asp:HyperLink ID="username" runat="server" NavigateUrl="/userCenter.html" ForeColor="Red"></asp:HyperLink>&nbsp&nbsp&nbsp欢迎来到淘我想淘网！
            <strong>
                <asp:HyperLink ID="loginlink" runat="server" NavigateUrl="/login.html" ForeColor="White">[请登录]</asp:HyperLink>&nbsp<font color="red">|</font>&nbsp<asp:HyperLink ID="reglink" runat="server" NavigateUrl="/regedit.html" ForeColor="White">[免费注册]</asp:HyperLink>
                <asp:LinkButton ID="logout" runat="server" ForeColor="White" 
                Visible="false" onclick="logout_Click">[退出]</asp:LinkButton>
            </strong>
            <span>
                <a href="/userCenter.html" target="_self" style="color:White">[用户中心]</a>&nbsp<font color="red">|</font>&nbsp[帮助中心]
            </span>
        </p>
    </div>
    <div id="newHeader" >
        <div>
            <a href="/" class="logo hidetxt"></a>
        </div>
        <ul id="newNav">
            <li><a id="mainpage" href="/" target="_parent" class="mainlink"></a></li>
            <li><a id="buy" href="/buy.html" target="_parent" class="buylink"></a></li>
            <li><a id="mybuy" href="/mybuy.html"  target="_parent" class="mybuylink"></a></li>
            <li><a id="allbuy" href="/allbuy.html"  target="_parent" class="allbuylink"></a></li>
        </ul>
    </div>
<div id="wrapper-home" style="border:1px solid #DDDDDD;width:974px;padding:10px;" class="clearfix corner">
    <asp:Repeater ID="newsDetil" runat="server">
        <ItemTemplate>
            <div style="border-bottom:1px solid #DDDDDD;padding-bottom:5px;">
                <h1><%# Eval("newstitle") %></h1>
            </div>
            <div>
                <font color="#666"><%# Eval("newsTime") %></font>
            </div>  
            <div id="newsbody" style="text-align:left;min-height:450px">
                <%# Eval("newsinfor") %>
            </div>      
            <div>
                <h1><a href="javascript:window.close()">[关闭]</a></h1>
            </div>
        </ItemTemplate>
    </asp:Repeater>
</div>
<iframe id="Ifooter" style="border: none;margin-top:30px;margin-bottom:30px;" width="998px" height="250px" src="/footer.aspx" scrolling="no"></iframe>
</body>
</html>
